//:C04:Unitbuf.cpp {RunbyHand}
#include <cstdlib>    // For abort()
#include <fstream>
using namespace std;

int main(void) {
  ofstream out("log.txt");
  out.setf(ios::unitbuf);
  out << "one" << endl;
  out << "two" << endl;
  abort();
}